package com.hbzhit.common.xss;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * xss过滤规则
 * @author DING
 */
@Data
@Component("xssProperties")
@ConfigurationProperties(prefix = "hbzhit.xss")
public class XssFilterProperties {
    /**过滤开关*/
    private boolean enabled = true;

    /**排除链接，多个逗号分隔*/
    private String excludes;

    /**匹配链接*/
    private String urlPatterns;
}
